package com.lanou.myim.model;

import com.easemob.EMCallBack;
import com.easemob.chat.EMMessage;
import com.lanou.myim.presenter.OnCompletedListener;
import com.lanou.myim.presenter.OnGetMsgsCompletedListener;

import java.util.List;

/**
 * Created by dllo on 16/3/15.
 */
public interface PrivateChatModelInterface {
    void getMsgs(String userName,OnGetMsgsCompletedListener listener);
    void getMoreMsgs(String userName,OnGetMsgsCompletedListener listener);
    void clearUnreadMsgs(String userName);
    void clearMsgs(String userName,OnGetMsgsCompletedListener listener);
    void sendText(String userName,String content,boolean isGroupChat,EMCallBack emCallBack);
    void sendPicture(String userName,String filePath,boolean isGroupChat,EMCallBack emCallBack);
    void sendVoice(String userName,String filePath,int len,boolean isGroupChat,EMCallBack emCallBack);
}
